import Vue from 'vue'
import App from './App.vue'
import elementUI from 'element-ui'
import router from './router/router'
import VueI18n from 'vue-i18n'
import './assets/icon/font_rb9lhyeetya/iconfont'
import './assets/icon/font_5ilvasny78i/iconfont'
import Carousel3d from 'vue-carousel-3d'
import axios from 'axios'
import msg from './static/js/msgTag'
import delay from "./static/js/lazyLoad";
import dayjs from "dayjs";
import debounce from "./static/js/debounce";
import clearTag from "./static/js/clearTag";

// import $ from 'jquery'
// 导入css样式表
import './assets/css/global.less'
import './assets/css/animate.min.css'
import './assets/css/changeColor.less'

Vue.use(VueI18n)
Vue.use(elementUI)
Vue.use(Carousel3d)
Vue.use(msg)
Vue.use(debounce)
Vue.use(delay)
Vue.use(clearTag)

Vue.config.productionTip = false
Vue.prototype.dayjs = dayjs

const i18n = new VueI18n({
  locale:  localStorage.lang,    // 语言标识
  //this.$i18n.locale // 通过切换locale的值来实现语言切换
  messages: {
    'zh-CN': require('./common/lang/zh'),   // 简中语言包
    'tc-CN': require('./common/lang/tc'),   // 繁中语言包
    'en-US': require('./common/lang/en')    // 英文语言包
  },
  silentTranslationWarn: true,
})


Vue.prototype.$axios = axios
axios.defaults.baseURL = "/api"



new Vue({
  el:'#app',
  i18n,
  router,
  render: h => h(App)
}).$mount('#app')


// <UserMenuLogOut> at src/components/userMenu/userMenuLogOut.vue
// <TopNav> at src/components/nav.vue
// <Home> at src/components/home.vue
// <App> at src/App.vue
// <Root>
